<?php
$row = $this->request->data;
?>

<div class="row-fluid">
    <div class="span2">
        <div>
            <p class="nav-header">Actions</p>
            <ul class="nav nav-tabs nav-stacked">
                <li>
                    <form action="<?php echo $this->Html->url('delete/' . $row['Transaction']['id']); ?>" name="post_delete" id="post_delete" style="display:none;" method="post">
                        <input type="hidden" name="_method" value="POST">
                    </form>
                    <a href="#" onclick="if (confirm('Are you sure you want to delete #<?php echo $row['Transaction']['id']; ?>?')) {
                                document.post_delete.submit();
                            }
                            event.returnValue = false;
                            return false;">Delete</a>
                </li>
                <li><a href="<?php echo $this->Html->url('index/'); ?>">List Transactions</a></li>
            </ul>
        </div>
    </div>
    <div class="span10">
           <div class="page-header">
            <h1>Transaction Detail</h1>
        </div>
        <dl>
            <blockquote>
                <small>ID</small>
                <?php echo $row['Transaction']['id']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>Payment</small>
                <?php echo $row['Transaction']['payment']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>Last Name</small>
                <?php echo $row['User']['lastname']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>Middle Name</small>
                <?php echo $row['User']['middlename']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>First Name</small>
                <?php echo $row['User']['firstname']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>Email</small>
                <?php echo $row['User']['email']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>Amount</small>
                <?php echo $row['Transaction']['amount']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>Currency</small>
                <?php echo $row['Transaction']['currency']?>
                <hr>
            </blockquote>
            <blockquote>
                <small>Payment Status</small>
                <?php echo $row['Transaction']['payment_status']?><hr>
            </blockquote>            
            <blockquote>
                <small>Date</small>
                <?php echo date('Y-m-d H:i', strtotime($row['Transaction']['date_paid']))?>
                <hr>
            </blockquote>            
        </dl>
    </div>
</div>